package adger.me.yili.adapter;

import android.text.Editable;
import android.text.TextWatcher;
import android.widget.EditText;
import android.widget.TextView;


/**
 * Created by adger on 16/1/22.
 */
public class MyTextWatcher implements TextWatcher {

    private EditText edit;
    private TextView text;

    public MyTextWatcher(EditText from, TextView to) {
        this.edit = from;
        this.text = to;
    }

    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {

    }

    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {

    }

    @Override
    public void afterTextChanged(Editable s) {
        text.setText(s);
        System.out.println(s);
    }
}
